package com.itheima.home_work.string_split;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class User {
    // 姓名[String]、年龄[int]、性别[char]、城市[String]、出生日期、创建时间
    private String name;
    private int age;
    private char sex;
    private String city;
    private LocalDate birthday;
    private LocalDateTime createTime;

    public User() {
    }

    public User(String name, int age, char sex, String city, LocalDate birthday, LocalDateTime createTime) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.city = city;
        this.birthday = birthday;
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", city='" + city + '\'' +
                ", birthday=" + birthday +
                ", createTime=" + createTime +
                '}';
    }
}
